﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    </div>
    <asp:GridView ID="GridView1" runat="server" Height="396px" Width="991px" AutoGenerateColumns="False">
        <Columns>
            <%--   LogonId, UserName, Password, EmailAddress, LastLogon--%>
            <asp:TemplateField HeaderText="ID">
                <ItemTemplate>
                    <%#DataBinder.Eval(Container.DataItem, "LogonId")%>
                </ItemTemplate>
                <HeaderStyle Font-Size="Medium" />
                <ItemStyle Font-Size="Medium" HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="用户">
                <ItemTemplate>
                    <a href="EditGYJH.aspx?id=<%#DataBinder.Eval(Container.DataItem,"LogonId") %>" target="_blank">
                        <%#DataBinder.Eval(Container.DataItem, "UserName")%>
                    </a>
                </ItemTemplate>
                <HeaderStyle Font-Size="Medium" />
                <ItemStyle Font-Size="Medium" HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="密码">
                <ItemTemplate>
                    <%#DataBinder.Eval(Container.DataItem, "Password")%>
                </ItemTemplate>
                <HeaderStyle Font-Size="Medium" />
                <ItemStyle Font-Size="Medium" HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="EMAIL">
                <ItemTemplate>
                    <%#DataBinder.Eval(Container.DataItem, "EmailAddress")%>
                </ItemTemplate>
                <HeaderStyle Font-Size="Medium" />
                <ItemStyle Font-Size="Medium" HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
